﻿using System.Data.Entity.ModelConfiguration;
using Wamm.Model.Entities;

namespace Wamm.EntityFrameworkImplementation.EntityConfigurations {
    public class EventConfiguration : EntityConfiguration<Event> {
        public EventConfiguration()
        {
            this.Property(e => e.AddedBy).IsRequired();
            this.Property(e => e.LastUpdatedBy).IsRequired();
            // the following are required due to using a not nullable data type:
            // Id
            // EventTypeId
            // Added
            // LastUpdated
        }

    }

}
